import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import home from '@/components/home'
import one from '@/components/one'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {path: '/',name: 'login', component: login},
    {path: '/login', component: login},
    {path: '/one', component: one},
    {path: '/home', component: home},
  ]
})
